package com.superlistaportable.productList;

import android.os.AsyncTask;

public class ProductListAsyncTask extends AsyncTask<ProductListController, Void, String> {
    	ProductListController controller;
    	
   @Override
   protected String doInBackground(ProductListController... args) {
     controller = args[0];
     return controller.getModel().getResponseFromServer("http://supermerkdotest.herokuapp.com/lista/"+controller.getSelectedSupermarket());
     
   }

   @Override
   protected void onPostExecute(String result) {
	   controller.postExecAsyncTask(result);
   }
}